package com.qf.service;

import com.github.pagehelper.PageInfo;
import com.qf.entitys.Business;
import com.qf.entitys.BusinessWithBLOBs;

import java.util.List;

public interface BusinessService {
    int deleteByPrimaryKey(Integer bid);

    int insert(BusinessWithBLOBs record);

    public int insertSelective(Business record);

    BusinessWithBLOBs selectByPrimaryKey(Integer bid);

    int updateByPrimaryKeySelective(BusinessWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(BusinessWithBLOBs record);

    int updateByPrimaryKey(Business record);

    PageInfo<BusinessWithBLOBs> selectAll(Integer pageindex,Business record);

    int updateBactive(Integer bid, Integer bactive);

    BusinessWithBLOBs selectDetailByid(Integer bid);

    int updateBactiveBySel(Integer[] ids,Integer bactive);

    int delbyids(Integer[] ids);

    /**
     * 查询用户或密码是否正确
     * @param record
     * @return
     */
    Business selectByIdAndPwd(Business record);

    List<BusinessWithBLOBs> selectAllByMillis(double log, double lat);
}
